//
//  LFBReadCarouselContentCell.m
//  ONE
//
//  Created by dllo on 16/6/7.
//  Copyright © 2016年 GroupNine. All rights reserved.
//

#import "LFBReadCarouselContentCell.h"

NSString *const kLFBCarouselCCellID = @"LFBCarouselCCellID";

@implementation LFBReadCarouselContentCell

// cell大小
+ (CGSize)cellSize
{
    return CGSizeMake(44, 44);
}

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        [self createCarouselCCell];
    }
    return self;
}

#pragma mark --创建轮播图内容cell
- (void)createCarouselCCell
{
    if (_numberLabel) {
        return;
    }
    
    self.backgroundColor = [UIColor whiteColor];
    self.contentView.backgroundColor = [UIColor whiteColor];
    
    // 初始化轮播图内容左侧数字label
    _numberLabel = [UILabel new];
    _numberLabel.backgroundColor = [UIColor whiteColor];
    _numberLabel.font = FontWithSize(15);
    _numberLabel.textColor = LYLAppThemeColor;
    _numberLabel.textAlignment = 1;
    [self.contentView addSubview:_numberLabel];
    [_numberLabel makeConstraints:^(MASConstraintMaker *make) {
        make.edges.equalTo(self.contentView);
    }];
    
}

@end
